package files;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %><%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Editing Files</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>Editing Files</h1>
            <ice:form>
                <ice:panelGrid columns="2">
                    <ice:outputText value="Id:"/>
                    <ice:outputText value="#{files.files.id}" title="Id" />
                    <ice:outputText value="Name:"/>
                    <ice:inputText id="name" value="#{files.files.name}" title="Name" required="true" requiredMessage="The name field is required." />
                    <ice:outputText value="Created (MM/dd/yyyy HH:mm:ss):"/>
                    <ice:inputText id="created" value="#{files.files.created}" title="Created" required="true" requiredMessage="The created field is required." >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </ice:inputText>
                    <ice:outputText value="Modified (MM/dd/yyyy HH:mm:ss):"/>
                    <ice:inputText id="modified" value="#{files.files.modified}" title="Modified" required="true" requiredMessage="The modified field is required." >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </ice:inputText>
                    <ice:outputText value="ProjectId:"/>
                    <ice:selectOneMenu id="projectId" value="#{files.files.projectId}" title="ProjectId" >
                        <f:selectItems value="#{projects.projectsItemsAvailableSelectOne}"/>
                    </ice:selectOneMenu>
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{files.edit}" value="Save">
                    <f:param name="jsfcrud.currentFiles" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][files.files][files.converter].jsfcrud_invoke}"/>
                </ice:commandLink>
                <br />
                <br />
                <ice:commandLink action="#{files.detailSetup}" value="Show" immediate="true">
                    <f:param name="jsfcrud.currentFiles" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][files.files][files.converter].jsfcrud_invoke}"/>
                </ice:commandLink>
                <br />
                <ice:commandLink action="#{files.listSetup}" value="Show All Files Items" immediate="true"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
